import request from '@/utils/request'

const api_name = '/edusta/statistics-daily'
export default {

    //生成图表
    createStatistics(day) {
        return request({
            url: `${api_name}/${day}`,
            method: 'post'
        })
    },
    //按条件生成图表
    showSta(searchObj) {
        return request({
            url: `${api_name}/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
            method: 'get'
        })
    },
}
